package com.dk.em;

public enum ResultEnum {
    GOODS_SALES_RETURN("14","此货物已退货或者未入库"),
    NO_WAREHOUSE("13","没有这个仓库"),
    TOKEN_LOSE_EFFICACY("12","Token失效"),
    OK("11","操作成功"),
    ERROR("10","操作失败"),
    USER_NULL("9","用户未登录"),
    REGULAR_STRING_REPETITION("8","规则字符串重复"),
    RULE_LENGTH_DOES_NOT_MEET_REQUIREMENTS("7","规则长度不符合要求"),
    USERNAME_PASSWORD_NULL_ERROR_CODE("1","用户名或者密码不能为空"),
    LOGIN_SUCCESS_DATA("2","登录成功"),
    USERNAME_PASSWORD_ERROR_DATA("3","用户名或者密码错误"),
    REGISTER_SUCCESS_DATA("4","注册成功"),
    REGISTER_ERROR_DATA("5","注册失败"),
    REGISTER_USER_EXIST("6","用户已经存在");
    private String code;
    private String message;

    @Override
    public String toString() {
        return "ResultEnum{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
